package com.ny.封装;

public class Emp {

    private String n;
    private String name;
    private int age;

    public Emp(String n,String name,int age){

        this.n = n;
        this.name = name;
        this.age = age;

    }

    public String getN(){
        return n;
    }
    public void setN(String n){
        this.n = n;
    }
    public String getName(){
        return  name;
    }
    public void setName(String name){
        this.name = name;
    }
    public int getAge(){
        return age;
    }

    public void setAge(int age){
        this.age = age;
    }


    public String toString() {

        return "Emp{" +
            "num='" + n + '\'' + ", name='" + name + '\'' + ", age=" + age +  '\'' + '}';
        }
    }

